//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================


#define GENDAC_INDEX         0x3C8
#define GENDAC_DATA         0x3C9
#define BASE_FREQ         14.31818   /* MHz */

int S3gendacSetClock(
   long freq, int clock
);

int ET4000gendacSetClock(
   long freq, int clock
);

int ET4000gendacSetpixmuxClock(
   long freq, int clock
);

int ET6000SetClock(
   long freq, int clock
);

int ICS5342SetClock(
   long freq, int clock
);

int S3TrioSetClock(
   long freq, int clock
);

int commonCalcClock(
   long freq,
   int min_m, int min_n1, int max_n1, int min_n2, int max_n2,
   long freq_min, long freq_max,
   unsigned char *mdiv, unsigned char *ndiv
);

